<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Gene Details</title>
</head>
<body>
<table width = "100%" bgcolor="#DBF3FF">
	<tr>
		<td width="70%">
			Basic Gene Details
		</td>
		<td width="10%">
		 	<s:form action="geneCommentHistory">
				<s:hidden value="%{gene.geneName}" name="geneName" />
				<s:submit value="history"/>
			</s:form>
		</td>
		<td width="10">
			<s:form action="emergencyReport" id="emergencyReport">
			<s:hidden value="%{gene.geneName}" name="geneName" />
			<s:hidden value="Gene Details" name="formName"/>
			<input type="button" value="report" onclick="reportEmergency()"/>
			</s:form>
		</td>
	</tr>
</table>
<s:form action="updateGeneComment">
<table width="100%"  borderColor="#E0E0E0" border="0" style="BORDER-COLLAPSE: collapse" >
	<tr>
		<td align="right" width="35%">
			<font color="#000099">Gene name:</font>
		</td>
		<td align="left" width="50%">
		<s:property value = "gene.geneName"/>
		</td>
	</tr>
	<tr>
		<td align="right" width="35%">
			<font color="#000099">Common name:</font>
		</td>
		<td align="left" width="50%">
		<s:property value = "gene.commonName"/>
		</td>
	</tr>
	<tr>
		<td align="right">
			<font color="#000099">Gene Length (bp):</font>
		</td>
		<td align="left">
		<s:property value = "gene.geneLength"/>
		</td>
	</tr>
	<tr>
		<td align="right">
			<font color="#000099">Strand:</font>
		</td>
		<td align="left">
		<s:property value = "gene.strand"/>
		</td>
	</tr>
	<tr>
		<td align="right">
			<font color="#000099">Start:</font>
		</td>
		<td align="left">
		<s:property value = "gene.txStart"/>
		</td>
	</tr>
	<tr>
		<td align="right">
			<font color="#000099">End:</font>
		</td>
		<td align="left">
		<s:property value = "gene.txEnd"/>
		</td>
	</tr>
	<tr>
		<td align="right">
			<font color="#000099">N Overlap:</font>
		</td>
		<td align="left">
		<s:property value = "gene.nterm"/>
		</td>
	</tr>
	<tr>
		<td align="right">
			<font color="#000099">C Overlap:</font>
		</td>
		<td align="left">
		<s:property value = "gene.cterm"/>
		</td>
	</tr>
	<tr>
		<td align="right" >
			<font color="#000099">Comment:</font>
		</td>
		<td align="left">
		    <s:hidden value="%{gene.geneName}" name="geneName" />
			<s:textarea name="comment" cols="30" rows="5">
			</s:textarea>
		</td>
	</tr>
</table>
<center>
<table>
<tr><td><input type="button" value="update" onclick="addcomment()"/></td></tr>
</table>
</center>
</s:form>

<table width = "100%" bgcolor="#DBF3FF">
	<tr>
		<td width="70%">
			Gene Sequence
		</td>
	</tr>
</table>

<table width = 100%>
	<tr>
		<td width = 10%><font color="#000099">primer</font></td>
		<td width = 60%><font color="#000099">sequence</font></td>
		<td width = 15%><font color="#000099">plate</font></td>
		<td width = 15%><font color="#000099">well</font></td>
	</tr>
	<s:iterator value="primerSeqList">
	<tr>
		<td><s:property value= "primer"/></td>
		<td><s:property value= "sequence"/></td>
		<td><s:property value= "plate"/></td>
		<td><s:property value= "well"/></td>
	</tr>
	</s:iterator>
</table>

</body>
</html>